package com.tensquare.friend.client;

import com.tensquare.friend.client.fallback.UserClientFallbackFactory;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: WangYaWei
 * @description:
 * @create: 2019-08-29 09:56
 **/
@FeignClient(name = "tensquare-user", fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {

    /**
     * 修改粉丝数
     * @param userid
     * @param x
     * @return
     */
    @PostMapping(value = "/user/incFansCount/{userid}/{x}")
    public Result incFansCount(@PathVariable("userid") String userid, @PathVariable("x") int x);

    /**
     * 修改关注数
     * @param userid
     * @param x
     * @return
     */
    @PostMapping(value = "/user/incFollowCount/{userid}/{x}")
    public Result incincFollowCount(@PathVariable("userid") String userid, @PathVariable("x") int x);


}
